; ----------- Vector 2 ------------

Cls : Locate 0,0

Local v1=Vector2(3,1)
Local v2=Vector2(1,6)
Print PeekMemFloat(v1+0)+","+PeekMemFloat(v1+4)
Print PeekMemFloat(v2+0)+","+PeekMemFloat(v2+4)
Print "v1     ("+Vector2x(v1)+", "+Vector2y(v1)+")"
Print "v2     ("+Vector2x(v2)+", "+Vector2y(v2)+")"
Print "v1*v2 = "+Vector2Cross(v1,v2)
Print "|v1|  = "+Vector2Mag(v1)
MagVector2(v1)
Print "|v1|   ("Vector2x(v1)+" "+Vector2y(v1)+")"
Print "v1=v2 : "+Vector2Equal(v1,v2)
SetVector2(v1,1,6)
Print "v1=v2 : "+Vector2Equal(v1,v2)

DeleteVector2 v1
DeleteVector2 v2

FlushKeys():WaitKey()
End

;~IDEal Editor Parameters:
;~C#Blitz3D